home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d18
/
totdem.arc
/
DEMMN1.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1991-02-10
|
708b
|
31 lines
program DemoMenuOne;
{DEMMN1 - a basic menu}
USES DOS, CRT,
totMENU, totFAST;
var
Main: MenuOBJ;
Choice: byte;
begin
Screen.Clear(white,'░'); {paint the screen}
with Main do
begin
Init;
AddItem('');
AddItem(' Load a file ');
AddItem(' Edit Date ');
AddItem(' Save the file ');
AddItem(' Change configuration ');
AddItem('-');
AddItem(' Quit ');
SetStyleTitle(1,' Main Menu ');
SetActiveItem(2);
Choice := Activate;
Done;
end;
if Choice = 0 then
Writeln('You escaped')
else
Writeln('You selected menu item ',Choice);
end.